SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO


CREATE PROCEDURE dbo.[DnnProduct_GetTabs]
	@PortalID int
AS
	SELECT *
	FROM   dbo.DnnProduct_vw_Tabs
	WHERE  PortalId = @PortalID OR (PortalID IS NULL AND @PortalID IS NULL)
	ORDER BY Level, ParentID, TabOrder

GO
